import Login from "../views/Login";
import Manager from "../views/Manager";
import ShopList from "../views/ShopList";
import ShopDetail from "../views/ShopDetail";

export default [
  {
    path: '/login',
    component: Login
  },
  {
    path: '/manager',
    component: Manager,
    children: [
      {
        path: '/manager/shopList',
        component: ShopList
      },
      {
        path: '/manager/shopDetail',
        component: ShopDetail
      },
      {
        from: '/manager',
        redirect: '/manager/shopList'
      }
    ]
  },
  {
    from: '/',
    redirect: '/manager'
  }
]
